<?xml version="1.0" encoding="UTF-8"?>
<!--
To change this template, choose Tools | Templates
and open the template in the editor.
-->
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html" xmlns:f="http://java.sun.com/jsf/core">
    <head>
        <title>TODO supply a title</title>
    </head>
    <body>
        <h:form>
            <h:dataTable value="#{usuarioFaces.usuarios}" var="item">
                <h:column>
                    <f:facet name="header">Usuario</f:facet>
                    #{item.nome}
                </h:column>
                <h:column>
                    <f:facet name="header"> Editar </f:facet>
                    <h:commandLink value="Editar" action="#{usuarioFaces.edit(item)}"/> 
                </h:column>
            </h:dataTable>
            <h:commandLink id="lnkNovoUsuario" value="Cadastro de Livro" action="#{usuarioFaces.adicionar}"/> 
        </h:form>
    </body>
</html>
